Optimal. Leaf size=187 \[ -\frac {A (a+b x)^3 \sqrt {a^2+2 a b x+b^2 x^2}}{4 a x^4}-\frac {3 a^2 b B \sqrt {a^2+2 a b x+b^2 x^2}}{2 x^2 (a+b x)}-\frac {3 a b^2 B \sqrt {a^2+2 a b x+b^2 x^2}}{x (a+b x)}+\frac {b^3 B \log (x) \sqrt {a^2+2 a b x+b^2 x^2}}{a+b x}-\frac {a^3 B \sqrt {a^2+2 a b x+b^2 x^2}}{3 x^3 (a+b x)} \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 187, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {770, 78, 43} \begin {gather*} -\frac {A (a+b x)^3 \sqrt {a^2+2 a b x+b^2 x^2}}{4 a x^4}-\frac {a^3 B \sqrt {a^2+2 a b x+b^2 x^2}}{3 x^3 (a+b x)}-\frac {3 a^2 b B \sqrt {a^2+2 a b x+b^2 x^2}}{2 x^2 (a+b x)}-\frac {3 a b^2 B \sqrt {a^2+2 a b x+b^2 x^2}}{x (a+b x)}+\frac {b^3 B \log (x) \sqrt {a^2+2 a b x+b^2 x^2}}{a+b x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 78
Rule 770
Rubi steps
\begin {align*} \int \frac {(A+B x) \left (a^2+2 a b x+b^2 x^2\right )^{3/2}}{x^5} \, dx &=\frac {\sqrt {a^2+2 a b x+b^2 x^2} \int \frac {\left (a b+b^2 x\right )^3 (A+B x)}{x^5} \, dx}{b^2 \left (a b+b^2 x\right )}\\ &=-\frac {A (a+b x)^3 \sqrt {a^2+2 a b x+b^2 x^2}}{4 a x^4}+\frac {\left (B \sqrt {a^2+2 a b x+b^2 x^2}\right ) \int \frac {\left (a b+b^2 x\right )^3}{x^4} \, dx}{b^2 \left (a b+b^2 x\right )}\\ &=-\frac {A (a+b x)^3 \sqrt {a^2+2 a b x+b^2 x^2}}{4 a x^4}+\frac {\left (B \sqrt {a^2+2 a b x+b^2 x^2}\right ) \int \left (\frac {a^3 b^3}{x^4}+\frac {3 a^2 b^4}{x^3}+\frac {3 a b^5}{x^2}+\frac {b^6}{x}\right ) \, dx}{b^2 \left (a b+b^2 x\right )}\\ &=-\frac {a^3 B \sqrt {a^2+2 a b x+b^2 x^2}}{3 x^3 (a+b x)}-\frac {3 a^2 b B \sqrt {a^2+2 a b x+b^2 x^2}}{2 x^2 (a+b x)}-\frac {3 a b^2 B \sqrt {a^2+2 a b x+b^2 x^2}}{x (a+b x)}-\frac {A (a+b x)^3 \sqrt {a^2+2 a b x+b^2 x^2}}{4 a x^4}+\frac {b^3 B \sqrt {a^2+2 a b x+b^2 x^2} \log (x)}{a+b x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 88, normalized size = 0.47 \begin {gather*} -\frac {\sqrt {(a+b x)^2} \left (a^3 (3 A+4 B x)+6 a^2 b x (2 A+3 B x)+18 a b^2 x^2 (A+2 B x)+12 A b^3 x^3-12 b^3 B x^4 \log (x)\right )}{12 x^4 (a+b x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [B] time = 40.39, size = 544, normalized size = 2.91 \begin {gather*} -\frac {1}{2} \left (b^2\right )^{3/2} B \log \left (\sqrt {a^2+2 a b x+b^2 x^2}-a-\sqrt {b^2} x\right )-\frac {1}{2} \left (b^2\right )^{3/2} B \log \left (\sqrt {a^2+2 a b x+b^2 x^2}+a-\sqrt {b^2} x\right )+b^3 B \tanh ^{-1}\left (\frac {\sqrt {b^2} x}{a}-\frac {\sqrt {a^2+2 a b x+b^2 x^2}}{a}\right )+\frac {2 b^3 (a+b x)^3 (a+2 b x)^{12} \left (3 a^2 A+4 a^2 B x+6 a A b x+10 a b B x^2+6 A b^2 x^2+16 b^2 B x^3\right )}{3 x^4 \sqrt {a^2+2 a b x+b^2 x^2} \left (-4 a^{13} b^3-96 a^{12} b^4 x-1060 a^{11} b^5 x^2-7128 a^{10} b^6 x^3-32560 a^9 b^7 x^4-106656 a^8 b^8 x^5-257664 a^7 b^9 x^6-464640 a^6 b^{10} x^7-625152 a^5 b^{11} x^8-619520 a^4 b^{12} x^9-439296 a^3 b^{13} x^{10}-210944 a^2 b^{14} x^{11}-61440 a b^{15} x^{12}-8192 b^{16} x^{13}\right )+3 \sqrt {b^2} x^4 \left (4 a^{14} b^2+100 a^{13} b^3 x+1156 a^{12} b^4 x^2+8188 a^{11} b^5 x^3+39688 a^{10} b^6 x^4+139216 a^9 b^7 x^5+364320 a^8 b^8 x^6+722304 a^7 b^9 x^7+1089792 a^6 b^{10} x^8+1244672 a^5 b^{11} x^9+1058816 a^4 b^{12} x^{10}+650240 a^3 b^{13} x^{11}+272384 a^2 b^{14} x^{12}+69632 a b^{15} x^{13}+8192 b^{16} x^{14}\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 75, normalized size = 0.40 \begin {gather*} \frac {12 \, B b^{3} x^{4} \log \relax (x) - 3 \, A a^{3} - 12 \, {\left (3 \, B a b^{2} + A b^{3}\right )} x^{3} - 18 \, {\left (B a^{2} b + A a b^{2}\right )} x^{2} - 4 \, {\left (B a^{3} + 3 \, A a^{2} b\right )} x}{12 \, x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 121, normalized size = 0.65 \begin {gather*} B b^{3} \log \left ({\left | x \right |}\right ) \mathrm {sgn}\left (b x + a\right ) - \frac {3 \, A a^{3} \mathrm {sgn}\left (b x + a\right ) + 12 \, {\left (3 \, B a b^{2} \mathrm {sgn}\left (b x + a\right ) + A b^{3} \mathrm {sgn}\left (b x + a\right )\right )} x^{3} + 18 \, {\left (B a^{2} b \mathrm {sgn}\left (b x + a\right ) + A a b^{2} \mathrm {sgn}\left (b x + a\right )\right )} x^{2} + 4 \, {\left (B a^{3} \mathrm {sgn}\left (b x + a\right ) + 3 \, A a^{2} b \mathrm {sgn}\left (b x + a\right )\right )} x}{12 \, x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 94, normalized size = 0.50 \begin {gather*} -\frac {\left (\left (b x +a \right )^{2}\right )^{\frac {3}{2}} \left (-12 B \,b^{3} x^{4} \ln \relax (x )+12 A \,b^{3} x^{3}+36 B a \,b^{2} x^{3}+18 A a \,b^{2} x^{2}+18 B \,a^{2} b \,x^{2}+12 A \,a^{2} b x +4 B \,a^{3} x +3 A \,a^{3}\right )}{12 \left (b x +a \right )^{3} x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.76, size = 379, normalized size = 2.03 \begin {gather*} \left (-1\right )^{2 \, b^{2} x + 2 \, a b} B b^{3} \log \left (2 \, b^{2} x + 2 \, a b\right ) - \left (-1\right )^{2 \, a b x + 2 \, a^{2}} B b^{3} \log \left (\frac {2 \, a b x}{{\left | x \right |}} + \frac {2 \, a^{2}}{{\left | x \right |}}\right ) + \frac {\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2}} B b^{4} x}{2 \, a^{2}} + \frac {3 \, \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2}} B b^{3}}{2 \, a} - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} B b^{3}}{6 \, a^{3}} + \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} A b^{4}}{4 \, a^{4}} - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} B b^{2}}{2 \, a^{2} x} + \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} A b^{3}}{4 \, a^{3} x} + \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {5}{2}} B b}{6 \, a^{3} x^{2}} - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {5}{2}} A b^{2}}{4 \, a^{4} x^{2}} - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {5}{2}} B}{3 \, a^{2} x^{3}} + \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {5}{2}} A b}{4 \, a^{3} x^{3}} - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {5}{2}} A}{4 \, a^{2} x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\left (A+B\,x\right )\,{\left (a^2+2\,a\,b\,x+b^2\,x^2\right )}^{3/2}}{x^5} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (A + B x\right ) \left (\left (a + b x\right )^{2}\right )^{\frac {3}{2}}}{x^{5}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________